﻿using System;

using Perseus.Plugins;

namespace Hetymine.Executioner.Plugins {
    public class Plugin : IPlugin {
        public PluginInfo PluginInfo { get; protected set; }
        public virtual bool IsEnabled {
            get {
                return Executioner.Config.GetBool(this.PluginInfo.Name, "Enabled", true);
            }
            set {
                Executioner.Config.SetBool(this.PluginInfo.Name, "Enabled", value);
            }
        }        
    }
}
